<template>
    <div class="app-container lading-bill-page">
        <FilterForm :data="filterData" label-width="85px" @search="getList" />

        <Table
            :api="$Api.woodPurchase.lading"
            ref="Table"
            dataName="data.list"
            height="60vh"
        >
            <el-table-column label="采购">
                <el-table-column
                    label="供应商"
                    width="160"
                    prop="supplierName"
                />
                <el-table-column label="开证公司" width="160" prop="pactName" />
                <el-table-column label="合同号" width="120" prop="pactNum" />
                <el-table-column label="提单号" width="120" prop="ladingNum" />
                <el-table-column label="入库方数" width="120" prop="inCount" />
                <el-table-column
                    label="码单方数"
                    width="120"
                    prop="noteCount"
                />
                <el-table-column label="采购金额" width="120" prop="money" />
            </el-table-column>
            <el-table-column label="汇率">
                <el-table-column label="汇率" width="120" prop="rate" />
                <el-table-column label="人民币金额" width="120" prop="rmbMoney" />
                <el-table-column label="税率" width="120" prop="taxRate" />
                <el-table-column label="代理费用" width="120" prop="agencyMoney" />
                <el-table-column label="报关公司" width="120" prop="customsName" />
                <el-table-column label="报关费" width="120" prop="customsMoney" />
                <el-table-column label="利息" width="120" prop="interest" />
                <el-table-column label="合计" width="120" prop="sumMoney" />
            </el-table-column>
            <el-table-column label="销售">
                <el-table-column label="库存方数" width="120" prop="inCount" />
                <el-table-column label="销售方数" width="120" prop="marketCount" />
                <el-table-column label="销售金额" width="120" prop="marketMoney" />
                <el-table-column label="利润" width="120" prop="profit" />
            </el-table-column>
        </Table>
    </div>
</template>

<script>
export default {
    data: () => {
        return {
            filterData: [
                {
                    label: "供应商类别",
                    name: "supplierTypeName",
                    type: "select",
                    select: "supplier",
                },
                {
                    label: "供应商",
                    name: "",
                    type: "supplier",
                },
                {
                    label: "开证公司",
                    name: "pactName",
                    type: "supplier",
                },
                {
                    label: "合同号",
                    name: "pactNum",
                },
                {
                    label: "提单号",
                    name: "ladingNum",
                },
                {
                    label: "状态",
                    name: "",
                    type: "select",
                    select: {
                        option: [{ label: "未完结", value: "0" }],
                        selectLabel: "label",
                        selectValue: "value",
                    },
                },
            ],
        };
    },
    methods: {
        /** 查询采购订单信息列表 */
        getList(params) {
            this.$refs.Table.getData(params);
        },
    },
};
</script>

<style lang="scss" scoped>
.lading-bill-page {
}
</style>